<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/include/TLDInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/select-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});
  
  $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
  
});


</script>


</head>


<body>

    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="seachform">
      

 <form:form action="${ctx}/snatch/findItem" method="post" >
 

 <li><label>来源网站:</label>
<div class="cityleft">
    <select class="select2" name="webCode">
    
     <option <c:if test= "${webCode eq 'HG'}">
                                                       selected="selected"
                                                 </c:if>
     value="HG" >皇冠</option>
    
    
    </select>
    </div>
</li>
 <li><label>游戏项:</label>
 <div class="cityleft">
 <select class="select2" name="gameCode">
    <c:forEach items= "${snatchGames}" var="snatchGame">
    <option <c:if test= "${snatchGame.gameCode eq gameCode}">
                                                       selected="selected"
                                                 </c:if>
     value="${snatchGame.gameCode}">${snatchGame.gameName}</option>
    </c:forEach>
    </select>
     </div>
 </li>
    
    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
    </form:form>
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    
    
    	<thead>
    	<tr>
        
        <th>编号</th>
        <th>采集类型</th>
        <th>采集项</th>
        <th>采集项页数</th>
        <th>最新版本号</th>
        <th>间隔时间</th>
        <th>采集节点</th>
        
        <th>管理</th>
        </tr>
        </thead>
        
        
        <tbody>
        
         <c:forEach items= "${snatchGame.snatchItems}" var="snatchItem"  varStatus="status">
	        <tr>
	        <td>${status.index + 1}</td>
	        <td>${snatchItem.itemTypeText}</td>
	         <td>${snatchItem.itemNameText}</td>
	        <td>${snatchItem.sumPage}</td>
	        <td>${snatchItem.version}</td>
	        <td>${snatchItem.interval}</td>
	        
	        <td>
			<c:forEach items= "${snatchItem.nodelist}" var="node"  varStatus="status">
			${node.nodeOnlyCode} 
			 <c:if test="${!empty node.error}">
			 (${node.error})
			 </c:if>
			 <c:if test="${empty node.error}">
			 -版本号：${node.version}(${node.snatchCost})
			 </c:if>
			
			</c:forEach>

			</td>
	         
	        <td>
	        <c:if test="${snatchItem.start eq 0}">
				 <a href="${ctx}/snatch/start?webCode=${webCode}&gameCode=${gameCode}&itemName=${snatchItem.itemName}&itemType=${snatchItem.itemType}"   class="a_flag_y" title="点击开启启用">启用</a>
			</c:if>
			<c:if test="${snatchItem.start eq 1}">
			 	<a href="${ctx}/snatch/start?webCode=${webCode}&gameCode=${gameCode}&itemName=${snatchItem.itemName}&itemType=${snatchItem.itemType}" class="a_flag_n" title="点击关闭启用">停用</a>	
			</c:if>
											
	        </tr> 
         </c:forEach>
        </tbody>
    </table>
    
    
    
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="../images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
   
</body>

</html>
